package com.springcloud.learn;

import org.springframework.web.bind.annotation.*;

/**
 * Created by Administrator on 2017/11/8.
 */

@RequestMapping("/refactor")
public interface HelloServiceApi {

    @RequestMapping(value="/hello4",method = RequestMethod.GET)
    String hello4(@RequestParam("name") String name);

    @RequestMapping(value = "/hello5",method = RequestMethod.GET)
    User hello5(@RequestHeader("name") String name,@RequestHeader("age") Integer age);


    @RequestMapping(value = "/hello6",method = RequestMethod.POST)
    String hello6(@RequestBody User user);
}
